package com.heima.user.service.impl;

import com.heima.user.util.SendSms;

import java.util.UUID;

public class A {
    public static void main(String[] args) {
        String phone="15286534713";
        if (phone.length()!=11){
            String str = UUID.randomUUID().toString();
            String codes = str.trim().replaceAll("-", "");
            String code = codes.substring(codes.length() - 4);
            SendSms.sendMsg(phone,code);

        }
    }
}
